import type { SearchAllParams, SearchAllResult, SearchTipsResult } from '@/types/search'
import { request } from '@/utils/request'

// 搜索-商品搜索-带筛选条件
// 开发中
// POST
// /search/all
export const searchAllAPI = (data: SearchAllParams) => {
  return request<SearchAllResult>('/search/all', 'POST', data)
}
// 搜索-提示语
// 开发中
// GET
// /search/tips
export const searchTipsAPI = (keyword: string) => {
  return request<SearchTipsResult[]>('/search/tips', 'GET', { keyword })
}
